from django_filters import rest_framework as filters
from .models import Departments


class DepartmentProductFilter(filters.FilterSet):
    class Meta:
        model = Departments
        fields = {
            'name': ['icontains'],
            'created_at': ['date__gte', 'date__lte'],
            'updated_at': ['date__gte', 'date__lte']
        }
